Eu mesmo descobri. Eu fiz isso em Powershell embora. Tive que aprender Powershell a partir do zero por isso.
$diskdrv = Get-WmiObject -Class Win32_DiskDrive -Filter "Caption='WD Elements 1078 USB Device'"
if ($diskdrv.SerialNumber.Contains("WXS1E94D125E"))
{
$index = $diskdrv.Index
Write-Host Hard Disk found at Index $Index
$volume = "\Device\Harddisk"+ $index + "\Partition2"
write-host Volume located at $volume
&"I:\Applications\VeraCrypt Portable\veracrypt.exe" /v $volume /lS /e /b /q
}