The SetVolumeMountPoint function seems to do what you need.
You will find quite a few related features (Disk Management, Volume Management, etc.) on MSDN (your best friend as a Windows Developer, sometimes called the "Microsoft Developer Network" or the "Windows Dev Center").
Tibo source share