Patients who are diagnosed with HPV commonly ask if their partner should get checked for HPV.
In men, there is no direct test for HPV. If there is no wart on the penis there is nothing to do but routine STD testing and to practice safe sex with a condom. This will not prevent all infection with HPV, but will certainly cut down on transmission.
Being diagnosed with HPV does not mean that someone is cheating, as an old persistent infection may be surfacing, and there is no way to tell who gave it to whom and when it happened.