echo %systemdrive%will give you the drive where Windows is installed. I'm not sure what you mean by “make IF from it,” but if you want to check if a given drive is an OS drive, you can do something like
if "%systemdrive%"=="C:" (
[commands...]
)
, " " , . , , , .