27 weeks and may have herpes

I am 27 weeks pregnant and my partner of 10 months has just told me that he heard a couple months ago that a sexual partner he was seeing before me before me has herpes. We have both been tested for other stds at the start of our relationship and they came back clear but I don’t think they tested for herpes. He has been so upset about it and worried about how it might affect our baby. Neither of us have had any symptoms at all, how can we get tested and know for sure if we do or don’t have it? Where do we go from here? Please help

We have also had oral and anal sex and have had no symptoms there either.