when you insert a card, a new partition appears which is referenced by "\MMC
Card" or "\CF Card" depending on the type of medium. You therefore simply
need to check whether this path exists to know where the card is present and
active or not.
As Chris indicated (and as is *always* the case when you ask for support),
you're going to have to tell us more about the device, at least the OS
version!