Marathon has a get_component
function that gives you the actual Java component (see the "script interface" section in the documentation). This function will pause for a time and then fail if the object can't be found.
But assuming that the object exists, you could find it with get_component
and then obtain its status by invoking java.awt.Component
's isEnabled
on it.