Apologies if this isn't the right group for this post.

Does anyone know a method/tool/code for probing each disk in a computer
and determining what operating system is installed, if any?

I'm mostly interested in the results from windows platforms, but the
code would preferably to perl or C or the tool needs to be elf x86
format.
I thought carrier's sleuthkit might have something but it seems not to.

appreciate any thoughts!