Thank you for using Just Answer.
According to the instructions for Form 5695 you can take the credit for your main home.
You must reduce the basis of your home by the amount of any credits allowed. To reduce the basis of anything must own the home. Since the home is owned by your mother you may not claim the credit.
I wish I could advise other. I sincerely XXXXX XXXXX information is useful,