There are several solutions but I would presume you need a solution that runs only on a client device.
If this is the case then use this:
First you will need to download/use Modernizer: http://modernizr.com/
You can use it to detect which devices have support for newer HTML5/CSS3 options. What you need to check is: Inline SVG support, you will find it detectable in an official documentation here: http://modernizr.com/docs/#features-html5
Older versions of Android (pre 3.0) and iOS (pre 5.0) don't have a support for it, find it here: http://caniuse.com/#feat=svg-html5
This is only reliable client side solution I know. If you need much more specific detection you will need to use server side detection. Currently best one is WURFL but it will cost you.
Read more about it in my other answer.