yes it can be done using by using win32 API.
there is a win32 API which return you the handle of specific windows or that can return the
class name of the running windows.
first you have to identify the handle or class name of the window which is under the
mouse pointer then you can get the text of this window or information about the window.
your initial point is
http:
what are classes
http: