You can partition a hard drive in Windows 10 to create dedicated portions of the hard drive that your computer will recognize separately.
To reallocate RAM to "Minecraft," you'll have to edit the game's settings through whatever launcher app you use.