How do you know if you are marrying a virgin?

Ask. The only way to know for sure is to ask the person and be able to trust that they are telling the truth. There are no medical tests and you can't always tell just by looking.