Why are you stressing out? You don't even know that she is pregnant. Once there is a child, you file to establish paternity and then the court will do a DNA test. Then you find out if the baby is yours or not. If yours, you can file for custody.
Until there is a baby, you can do nothing.

