I am using Java Smart Card API to access.
I have NXP Mifare desfire 4K , 1K , Ultra light smart cards with me & trying to find out its type programically in JAVA.
Find out the ATR of the card and ATR contain the the information of card type. Here I am uploading image See the structure of ATR...
For more info Here the full PDF
look at Page no 6.