Is there a way to detect which version of Exchange Server is running (2007 or 2010) via c#?
Your best bet would be to use WMI