Here is the code you are looking for:
if Request.Form("Password") <> Request.Form("Password2") then
Err_Msg = Err_Msg & "<li>Your Passwords didn't match.</li>"
end if
It's in register.asp around line #114 if you haven't modified register.asp too much.