Charm identification using silicon detectors in a neutrino experiment