You could check them each for signs of laying:
https://www.backyardchickens.com/articles/who-is-laying-and-who-is-not-butt-check.73309/
Or you could separate them for a few days, and see who lays eggs. Putting one in a wire dog crate, inside the area with the other one, would let them still...