I did this in the past by using the card driver dll, they usually have some function that provides that info.