windows = system.gui.getOpenedWindows()
for window in windows:
print window.getTitle(), window.getPath(), window.getName(), window.hashCode()
window.hashCode()
will give you a unique id for each otherwise identical window.
window.isStartMaximized()
should give you a good idea of whether it’s a popup window or not.