1. Get price history for your stock and whatever the market index you choose.
2. calculate price changes, daily or weekly, for both your stock and index
3. do regression, you will get the historical beta
4. if you desire, you can adjust the historical beta to get normalized beta.