There is not an enourmous amount of deployment control where I work at the moment. And while there is a long term plan to create a build script that deals with deployment at the
You can use this code get the information from vb. I use a rewritten version of this to find out this information at app startup time.
http://www.codeproject.com/KB/architecture/svn_visual_studio.aspx