It seems we can set the protection level with action=stabilize, but there does not seem to be any way to read the current protection level via the API. This could be added to action=query&prop=flagged, or a separate prop could be added. Or it could be added to action=query&prop=info&inprop=protection with other protection information, but I don't think there's a hook for that at this time.
Version: unspecified
Severity: enhancement