If these are shares held in a general investment account and automatic reinvestment is occurring there will be a contract note for each purchase. CGT will apply when you sell.
If you sell all of the shares the calculations are relatively straight forward. If you sell part and then continue to use automatic reinvestment the rules are quite complicated so using an accountant for your tax return would be a good idea.