Those IDs are automatically generated when the filesystem is created, and the versions of Windows that we use (Windows 7, and Windows Server 2008R2) do not offer a way to change it.
The Sysinternals collection however contains the
volumeid.exe tool that does the trick. It can be downloaded for free at http://technet.microsoft.com/en-us/sysinternals/bb897436Image Removed.
I set the ID to the same value (
CAFE-BABE) for all the NTFS partitions on my disks.
After that I used
diskmgmt.msc to change the drive letter to W:.