Is it possible in ABAP to query whether GuiXT is active?

Yes, you can read the Windows Registry; please see Tips&Tricks Nr. 19.