I do understand your concern. However, there is no known diagnostic test to ascertain HPV infection in men until this infection manifests as genital warts. There is no definite way to completely prevent infection of the HPV virus among men. Men may transmit HPV to their partners. Even with the use of condom, transmission is highly possible. There are two types of HPV: the low and the high risk types. The high risk types are associated with cervical cancer in women. "In 90% of cases, the body’s immune system clears the HPV infection naturally within two years. This is true of both high-risk and low-risk types."
Thus, the body may harbor the virus for two years and in this period, the person may infect another through sexual activity. The best way to prevent this is sexual abstinence and through examination of the female partner.