Microsoft.WindowsMobile.Status has a class that tracks all kinds of properties of your device. In addition to what you need, DisplayRotation, it also contains phone coverage properties, Nr missed calls, the next destination, and more. See msdn for more information.
You can also add an event handler to notify you of changes to these properties.
source share