Determine Fragment Shader Version


is there a way to determine the (directx) pixel shader version? I mean something like ps_3_0? My application requires pixel shader 3 - if pixel shader 3 is unsupported I want to fall back to a (basic) fixed function pipeline rendering. any ideas or code to implement this detection?

Thanks in advance!