You can use a transvaginal ultrasound to check the length and some dilation of the cervix. This is often used in the early weeks of pregnancy. However, at the end of your pregnancy, we benefit from more information than an ultrasound can give us.