Distinguishing IE windows from other windows when using SHDocVw
See the question and my original answer on StackOverflowOnly Internet Explorer has an HTMLDocument as the Document object, so you can check this:
if (shellWindow.Document is mshtml.HTMLDocument) // requires a reference to mshtml
{
// this is Internet Explorer
}