Tracking down the source of HPV can be quite challenging, because the virus can lie dormant in the body for decades. Further, the initial infection may have no symptoms, but subsequent re-emergence of the virus can cause warts to appear at some unrelated time. Therefore, something long forgotten, that didn't even seem noteworthy at the time, can be the cause of a current infection. So, it is estimated that as many as 80% of sexually active people have, or have had the virus, but most never know it.
From my late 20's, until my early 40's, when my body finally cleared out the virus, I would have occasional appearance of HPV warts. Although we usually refer to HPV as an STD, mine were never on my genitals, and intercourse was apparently not involved. The initial site of the infection and warts was my left hand and wrist. This was misdiagnosed as an allergy to my watch band (the doctor I had in those days was clueless about sex in general, and gay sex was incomprehensible...), and in any event, the warts vanished after a while. (I now realize it was probably the consequence of having jerked off the wrong guy in the back room of some bar.) Years later, usually when I was under heavy stress, the warts would re-emerge. However, they would usually appear on my upper legs, in the groin area, but not on the genitals, and never on the hand where it all started. But they were clearly identical in nature.
During one such stressful time, I would sleep naked spooned behind my boyfriend. He appeared particularity susceptible, and the pattern of warts would transfer from my leg to his backside, as if with a rubber stamp. His doctor correctly diagnosed it as HPV for both of us. But, although the warts clearly facilitated transmission, supposedly transmission can occur even without visible warts. Eventually, everything cleared up for both of us.
There really isn't any test approved for men not presenting symptoms, but since the virus can lie dormant in either or both partners for years, the results wouldn't be necessarily be useful, even if there were. However, based on my experience, sexual intercourse is not necessary, as I managed to acquire and re-transmit the virus in situations that involved only hand and skin contact.