SPDatabase.IsReadOnly property
SharePoint 2013
Gets a value that indicates whether the database is read-only.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Gets a value that indicates whether the database is read-only.