Pick > Object Types > Pick by Shader

Picks or unpicks all surfaces in a scene that have the same shader assigned to them.