How to identify the bootloader programatically?

Is there a way to find out programatically which bootloader I have? I tried reading one or two bytes of flash memory at 0x7e00, but that doesn't seem to be returning the correct values. On a Hex editor, the byte at 0x7e00 is showing to be 0xE0, but pgm_read_byte(0x7e00) is returning 0x41. Maybe I'm doing something wrong. Can anyone help?