It is usually the REQUEST functions that can be used to obtain such information. I checked the GDL Reference and there are REQUEST functions for Window/Door and Cut Fill states but not Beam options.
To be honest I always thought that GDL should be able to get any setting in these settings Dialogs (like On-Screen View Options, Model View Options, Project Preferences).
You should make a wish for this if you want it to be in a future version.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28