Well, I don't know what to tell you. The first google result for "Volume Label of Drive C++" shows exactly how to obtain this information if it is for Windows. Note that the search string is the exact title of this thread with "C++" added to it. :-S
Or is it for Linux? If it is, try the Linux forum.
I was using 'google' in the generic verb form, meaning to search the internet with a web search, not neccessarily with google.com, albeit that is where the word comes from. Its like using 'kleenix' to mean any brand of facial tissue, ya know?
Alirght i don't even remember the exact search term i used, but I remember it came back with results primarily for java and I didn't bother scanning beyond the first page of results.