Detect OS version in raw image file?

Is there a way to detect the OS type and version on a raw image file? Preferably a command line utility, something like:

detectos myimagefile.img
…Windows 7 SP2 detected

Volatility will get close, it not the exacts version.