ATMEGA328 locks up on watchdog reset

Does anyone know a method of identifying which boot loader is installed in a AT328P? Perhaps a register that could be read by a purpose written code.