Prenatal paternity

Is there such thing? Do doctors provide it? The first father of my child and I went our separate ways for some time then came back together not too long after I had slept with someone else (he has done the same, please don’t scold me) I just want to make sure he is the father of this child I’m currently pregnant with.