Hi @Hsaniba,
Thank you for posting in this community.
We don't have a way to check the status of sharing links to files across the SharePoint organization. You can check the status of share links for a particular document library by referring to the PnP PowerShell in this thread.
$ShareLink.``Expiration
keeps track of when the link has expired, and you can filter the values in that column to find all expired shared links.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.