The system does that automatically you don't need to do anything. The BIOS may have an option to increase or decrase the RAM the video card reserves.
You should put some details in the post as to why you want to do this and your exact system specs, CPU, PSU, case, etc...