If you have the bike and they used Shimano cables, then likely the model of the cable is written on the side of the housings somewhere.
If you buy your cables now, then you'll miss out on whatever the latest greatest new technology is when you finally need to replace your original cables. But I only ride road, so maybe being in the mud and grime you should keep a spare set.