I've gradually learned which hen lays which egg by hanging around and happening to be there when it's laid. If I were curious I'd try dabbing different food colorings on vents and hope a smear would be on the egg. But most of mine are different breeds or mixes except two BA's, so egg color tells me a lot.

Just wait til you reach under a hen to check for eggs and have one laid into your hand.... awesome.