Given the following Registry Info how do I extract the value from a SubItem?

HKEY_LOCAL_MACHINE\SOFTWARE\RealNetworks\RealPlayer\version

By looking into the registry the value of version is 6.0.14.806. How do I code to get that value into a variable?