Hi @David Gómez ,
Presently, there is no Microsoft Graph API or Microsoft Graph PowerShell SDK available to list the shared mailboxes of an user. You can submit a feature request idea using this graph developer support link, which will be monitored by Microsoft team and make the enhancements to Microsoft Graph APIs. I will also upvote for you.
However you can use Exchange Online PowerShell script to achive this requirement and please find the relevent powersheel command and documentation links below :
Get-Mailbox -RecipientTypeDetails SharedMailbox -ResultSize:Unlimited | Get-MailboxPermission | select identity,user,accessrights | where { ($_.User -like '*@*') }
https://learn.microsoft.com/en-us/exchange/recipients-in-exchange-online/manage-user-mailboxes/use-powershell-to-display-mailbox-information
https://techcommunity.microsoft.com/t5/office-365/listing-shared-mailboxes-and-members-powershell/m-p/241737
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.