There are various online tools that can assess the carbon footprint of your website. Additionally, analytics can provide insights into page load times, bounce rates, and other factors that can indirectly indicate the site's sustainability.
I use
website carbon calculator which continually measures the environmental impact of a website. Each website will have a badge displaying this information