If you pre-order Call of Duty: Modern Warfare II digitally from Battle, the beta access will automatically be added to your Battle account and you will be able to download the beta client as soon as it becomes available. You do not need to redeem any code.
If you pre-order via PlayStation Store, Xbox Store, Steam or battle, you will automatically be eligible for beta access. If you buy anywhere else, you'll need to look out for a beta access code. This is a 13-digit code that will be on your receipt, or as part of the email confirmation.