Here are a couple of other links. I think the second one has what you want:

Powershell function to get password age.
Here is a VB script to display password expiration for all users.