Without a doubt, dogs can tell when a woman is pregnant, partly because they can smell changes in the woman's body as her hormones shift.
The answer may simply be that because dogs live so closely with their humans, a dog can sense emotional changes when a woman's labor is about to start.