watchdog timer

Is there a way to tell if a sketch is started from power up or a watchdog reset?

This is on an Arduino Yun, but I guess it would also apply to the Leonardo.