How does a doctor check for dilation?

Michaela
I'm a ftm. And not far enough yet for them to check(27weeks) but I see people asking about it and I have no idea how they do it.