To query for all windows unattached disks (which are not attached to any of the virtual machines), we can use below command:
Get-AzureDisk | Where-Object {($.OS -eq “windows”) -and ($.AttachedTo -eq $null)} | Select diskname
Same way you can find out for Linux related disks.