Hi, since the Gumball settings are available in the Advanced Options, you can try to read them from there? Here are some samples of how to access/modify Rhino’s advanced options via Python:
Accessing Advanced Options via script - Scripting - McNeel Forum