Question

How do they check if your baby will have Down syndrome or any other kind of illness and is it safe that they check you? I’m curious because my dr said next appointment I had the option too check for down syndromes and what not but I was also curious as too how safe that was and what’s the process? Thank you in advanced and sorry I’m a first time mommy