Might not be explicitly legal, but chances are it'd go like this:
Police: Sir, do you know what speed you were going?
Driver: Yes, my wife is in the back and she's about to go into labor.
Police: Let me turn on my lights and escort you to the hospital!