You should be able to do this with GRUB. Install Windows before Ubuntu and it should take care of the rest. If you want to be able to view the Ubuntu partition in Windows, install
IFS Drives. It comes as a Control Panel applet and assigns drive letters for ext2 and ext3 partitions.