First you need to get your dog comfortable with having your finger in their mouth
Then you need to get them to accept you opening their mouth for them
Ones they are use to you exploring their mouth, you can start brushing their teeth