[C++ Pro] Check if robot is in disabled state or not

Is there a way to check if the robot is in a disabled state in C++ pro? Reason im asking is to make sure robot pre autonomous ends as soon as autonomous/driver starts.