Yes it is possible for a webpage to retrieve the content of a password-field via JavaScript, just as most autofill-addons use JavaScript to insert the password based on the URL and the input-type or id of the password-field.
The following function prints all the passwords on the current page, if there is any, and could easily be modified to just check if a password-field has a certain minimum length.
(function () {
var passwords, j, i;
passwords = "";
for (j = 0; j < document.forms.length; ++j) {
for (i = 0; i < document.forms[j].length; ++i) {
if (document.forms[j][i].type.toLowerCase() == "password") passwords += document.forms[j][i].value + "\n";
}
}
if (passwords) alert("Passwords in forms on this page:\n\n" + passwords);
else alert("There are no passwords in forms on this page.");
})();
Of course you might have this run with a little delay, in case the webpage is loaded faster than the autofill. But beware of not having a too high delay in case the user is a fast typist.