Check the expiration date of an office365 email account?

Hallo Nagios community,

i wonder if it is possible, to check the password validity of an email account in office365 cloud.
Let’s say the PW changes every 3 months, would i be able to get a red alert if this is due to 14 days or so? Would be most helpful for accounts that are used for nun-user tasks and automated stuff, which would otherwise just stop working if the PW expires.

Thanks already

Killerloop