install all the windows OS's first.; save space for the ubuntu install last
When your installing ubuntu, it will automaticly detect every bootable other partition (aka all the windows ones) and automaticly create a GRUB bootloader for you that will select between all of those OS's.
It (really is) that easy.