I could only find a Perl script to do this...
http://www.awtrey.com/software/htpass.php
(of course, you can run Perl CGI scripts on Windows no problem)
Failing that, you could write your own! I believe that the PHP function to generate the password looks like:
function htpasswd($pass)
{
$pass = crypt(trim($pass),base64_encode(CRYPT_STD_DES));
return $pass;
}