IsEnabled()

var checkStatus = button1.IsEnabled()

Note:
In this example, the variable checkStatus will contain true if the button is enabled or false if it is disabled.

Close