Aside from the fact that I'd rather use two virtual disks - one for each partition - than a single partitioned one, you basically have two option to achieve your goal. Either partition the disk during the initial Win10 installation, or use Disk Management from within the guest to reduce the C: partition, and then create the D: partition.
André