A method to determine the isotopic composition of cosmic ray carbon