Can you lose your virginity due to a pap smear test?

No. Virginity means no sex. A pap test is not sexual. The speculum should not break your hymen, either.
No. A pap smear requires inserting a speculum into the vagina to see the cervix and obtain the cells for the test. That is not sexual intercourse and does not constitute loss of virginity.