Before posting the question, I searched and found some ways to fetch guid of the volume.
My requirement is in Powershell: I have a drive say "M: