The item code for The Mysterious Magnum in Fallout: New Vegas is 00127C6C. This is the presumed pistol of the Mysterious Stranger.
You can also obtain it in-game after landing The Lonesome Drifter a job at The Tops during the quest Talent Pool.