If you installed Ubuntu first and then Windows I would guess that Windows probably overwrote grub with it's own boot manager that doesn't see Linux distributions. I would try reinstalling Ubuntu or more specifically grub.
If, on the other hand, you installed Windows first and it is still experiencing this problem you might check that having both drives set to master isn't causing a problem.