How do i get the path specified by the user during the installation of the solution?

I believe the path information is stored in Windows installer directory database under TARGETDIR. Now how do i access this TARGETDIR property?

Is there any APIs for access?