I'm not sure about VS 2010, but in VS2008 setup projects there is a .vdproj project file that can be opened with a simple text editor (for example, notepad). If you are looking for the word "ProductCode", you will find a string like
"ProductCode" = "8:{GUID}"
(GUID is what you are looking for).
source
share