I am sure there is some way you can work with the PAM modules nicely (using PERL, python, etc.) to get this info. But another way to find it out is with chage.
Note that only root can list aging information for other users. You could parse the output and do some comparisons for the notification.