venkatesan_G02,
Have you read
Using WWW::Selenium To Test Or Automate An Ajax Website? In there, I showed an example of how to find a window not opened with window.open. It might not be immediately useful but if you combine it with some of the other Selenium methods (get_all_window_ids or get_all_window_titles), you should be able to figure it out.