From a batch file how would you find if a hard drive is ATA or AHCI? Is it stored somewhere in a file I can parse or is there a command to find out?
There may be better methods but this detects AHCI here:
wmic idecontroller|find /i "ahci">nul && echo AHCI detected