DISCLAIMER:
This involves mucking with things that are not actually an API in cpanel, it is subject to change. You implement this with full understanding that future patch, minor or major version updates can break this functionality.
The passwordstrength system is all based off of a cgi script that is available for usage.
This script is located at /backend/passwordstrength.cgi
It takes a single posted parameter of "password" which contains the password
it return a very basic JSON datastructure containing a single entry called "strength" which will indicate the numerical strength for the password.
f.ex: