You can't do this with Photoshop. Not no way. Not no how.
Actually I’m not sure what you want to achieve, so:
What is Photoshop supposed to locate (existing Shape Layers, …) and what is it supposed to create (Shape Layers, …)?
This sounds like something for Excel maybe?