Can you know in advance?

Katie
Can you know if you can't have kids? Is there something the doctor has to do before hand to know? Is there a specific doctor you have to go to?