Surface photochemistry probed by two-photon photoemission spectroscopy