One thing You could do is when the gui is created, either store the noderef in something that will keep the value, or a temporary fix would be to use println() to display the id to the console and copy from there.
Alternatively, if you know the class of the gui, you can Query for Nodes of that class:
/qn className
If you can get the id of a parent control to it (or farther up the hierarchy), you could check the children field to see all child controls.
/sn <someNodeID>
--Shows the details of a Node.