From using the app, it looks like they just use the accelerometer and guesswork. Or they just really suck at detecting my head. The preference for screen rotation says "Turning on Screen Rotation disables motion sensing for voice search."
Gruber has a much better article on this here:
http://daringfireball.net/2008/11/google_mobile_uses_private...