Welcome to the forum!
How to get help on the Dynamo forums - FAQ - Dynamo
I suggest searching for other topics dealing with identifying elements in spaces. There should be plenty of examples addressing how to accomplish this. From there, you can put something together and see where you get. If you get stuck or confused you can always reply here with a specific issue or question.