MYSQL Password Settings
The password is encrypted via a one-way algorithm.  You cannot discover the length or contents (numbers, punctuation, etc) of passwords once they are stored.

Password rules need to be enforced when they are first created, even before touching MySQL.

If you want expiration rules that are easily configured and maintained, upgrade to 5.7.  (Anyway 5.1 is antique by now!)