You could use the EnumWindows() API function and check the title of each top level window.
Remember that the caption of IE also contains the title of the current web page, so you might want to check for the class name instead (Use a tool like WinSight to get this).
A more flexible approach would be to hook into IE with COM, but I'll leave that to someone more experienced in COM stuff. --
Robert