Is there an API call to return the amount of system resources free/used etc?