There is a tool called Spy++ that comes with Microsofts Visual Studio that will, among other things, tell you the process ID that owns a window.
Then you can go to the task manager, enable the process identifier column, and see we owns it.
There may be other similar (and cheaper) programs out...