HOW CAN FIND CID OF SDCARD in file system driver

I have created a Legacy file system driver to block the storage devices.
I need to allow the SD cards by its Manufacture ID , OID ,VID ,Revision and serial number.
how can i find the these details in file system driver.