Sorry, this isn't possible. The checkboxes you're referring to reflect the visibility of the tracks and annotations in the sequence viewer. As such, they're properties of the sequence viewer, rather than of the tracks/annotations themselves, and these aren't accessible from our Public API.
What are you trying to do that requires this information? Perhaps there's some other workaround.