See: Determining the version of system firmware on a Photon/P1
You boot into setup and use a serial terminal