There is no way to distinguish between objects at the shader level. I tried doing that in my Outline tutorial, and basically reached that same roadblock. I also asked martinish, and even he didn’t know.
In the shader, you only have access to the color, and depth of a given fragment - that’s basically all you get.
Maybe you could use the Stencil Buffer to mask out the pixels you don’t want to blur?
0123456789