Having read a few more posts I may well be teaching you to suck eggs so apologies in advance.
Assuming my understanding is correct you could write yourself a library that exposes your requirements as logic tests; for example hasSSE(), hasSSE4-1(), etc. On calling these methods the eax register is set as appropriate and the ecx and edx resister values tested as need in order to return a bool.
This way you could :
if (hasSSE4.1()) {
doThis() ;
} else {
doThisInstead() ;
}
Of course the library could be used with ASM, C, C++ or any other language you want to write bindings for.
--
Bill