Where can I find the structure and layout of what exactly gets hashed by miners?
The data that's hashed is the block header. You can find a description of the format and layout at https://en.bitcoin.it/wiki/Block_hashing_algorithm