The LEGO Universe beta testing initiative has now wrapped up, so new codes aren't being handed out anymore.
Back when it was active, you'd get a code by clicking the "beta section" button to sign up as a tester. Since it's over, that route is closed.