the end of the drives, next to where the IDE cables plug in.
if the cable is just a straight ribbon cable, then its not setting master and slave, but I believe some cables had about 10 conductors twisted between the master and slave connectors, to change the second drive to slave... but I haven't seen that for ages!