You can get the current IE window by looping through Shell.Windows.