One common method is through urine or blood tests. These tests can detect the presence of various sexually transmitted infections, such as chlamydia, gonorrhea, syphilis, and HIV.