IOCTL_CDROM_GET_INQUIRY_DATA control code
Returns the SCSI inquiry data for the CD-ROM device. This IOCTL can be used when a device has been exclusively locked with IOCTL_CDROM_EXCLUSIVE_ACCESS.
Parameters.DeviceIoControl.OutputBufferLength indicates the number of bytes that can be written to Irp->AssociatedIrp.SystemBuffer, which must be >= sizeof(INQUIRYDATA).
The buffer at Irp->AssociatedIrp.SystemBuffer contains the returned inquiry data. For a description of the layout of the inquiry data in the output buffer, see INQUIRYDATA.
The Information field contains the number of bytes returned in the output buffer. The Status field indicates the results of the operation.