If a wiki is set to read only mode, this information should be available via the api. I suggest to include the read-only message as specified via $wgReadOnly or $wgReadOnlyFile in the information returned by a meta=siteinfo query.
Version: unspecified
Severity: enhancement