Desktop OS has UEFI or BIOS available for boot and platform services, together with enumerable busses, so you can find out what hardware you have available. Such things are luxury in the mobile world, you need to know what hardware you have in advance, otherwise wrong poke and something will hang.