You can detect support for CSS Filters in modernizr using the css-filters test:
Build config

The test is hidden in the “non-core detects”.

I am not sure, if all browsers supporting any type of CSS filters also support drop-shadow as a value.