Whichever is currently running an operating system
Whichever is attached to your motherboard's first SATA port
Both drives are the master
Neither drive is the master