I had a customer ask for a way to get alerted before their CUDs would expire. Google doesn't seem to offer this, but listing active commitments is available via API: https://cloud.google.com/compute/docs/instances/signing-up-committed-use-discounts#viewing_active_commitments
Please do not upload confidential information