How do i apply a gryscale shader to an object that is seen through my transparent sphere?

so, i have a translucent sphere and i want all light that passes through it to become greyscale so that objects that are outside the sphere are colored, but objects inside & behind the sphere are grayscale