I’m using a simple one-liner to determine the WWN of a LUN. I use this information to identify the data stores on VMware with the LUNs on the storage sub system. Usually the proper naming convention shall help identifying this but in historical grown environments you might run into the same problem and a simple one-line returns the proper information which makes your life easier 😉
Get-Datastore '<DATASTORE>'|Get-View|select name,@{n='wwn';e={$_.Info.Vmfs.Extent[0].DiskName}}|ft -a