Below is a ready-to-use script. Review and adapt variables to your environment.
Connect-SPOService -Url https://contoso-admin.sharepoint.com Get-SPOSite -IncludePersonalSite $true -Limit All | Select Owner,StorageQuota,StorageUsageCurrent | Export-Csv onedrive_quotas.csv -NoTypeInformation