The jumper in the middle of each drive is the thing you use to set the drive into "master", "slave" or "cable select mode". Usually it is best to specifically set your primary OS drive to "master" and the other one to "slave". How? The possible positions of the jumper are usually drawn on each disk (front label where you can see the capacity and all other relevant data). If not, sometimes they are also marked near the jumper, but I cannot see this in your case. Anyway, if everything else fails, you can try googling exact drive model on the internet to find out jumper positions. Use tweezers (or fingernails) to set one drive to master and the other one to slave.
EDIT: This "master + slave" combination must be correctly set for each set of 2 drives on a single IDE cable. If you have only 1 drive on a cable, it can usually be left on any setting, although I have seen some drives that like being "master" regardless of sitting alone on one physical cable. Therefore, if you plan on using a DVD ROM (also IDE) on a separate cable, you can either leave it on its own cable and set it to master, or connect it together with one of the hard drives (master) and set the DVD ROM to slave.