Lets take two electrodes Zinc<Zn> and Copper <Cu>.
Zn<2+> + 2e ->Zn Reduction potential is -0.76
Cu<2+> + 2e->Cu Reduction potential is 0.34
Now since Zinc has negative reduction potential,It has less tendancy to reduce or more tendency to oxidise.Thus it is the anode as it undergoes oxidation.
Similarily Cu has positive reduction potential indicating it has more tendency to undergo reduction or less tendency to undergo oxidation...Thus it is the cathode.
THus by seeing the reduction potential we can see which undergoes reduction and which undergoes oxidation...