Some of the interfaces such as IDE and SCSI have hardware identifier selectors which determine which devices will be found first so that the bootable files can be stored on that device, but in general, the rest of the devices are assigned drive letters in a first-found first-assigned manner.