SPSiteAdministration.ReadLocked property
SharePoint 2013
Gets or sets a value indicating whether the site is blocked for read access.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Gets or sets a value indicating whether the site is blocked for read access.