Hi anonymous user-4624,
You can use GET /me/drive/SharePointIds
to get associated sharepointids that returns siteId
.
Use the siteId
to get sitecollection associated with your OneDrive.
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".