SP.UsageInfo.storage Property
Applies to: SharePoint Foundation 2010
Gets a value that specifies the total amount of disk space, in bytes, currently being used by the site collection.
var value = SP.UsageInfo.get_storage();
Property Value
Type: Int64