CLI

There is one simple command to determine how much power can give you your cable + charger combo. I’m using Macbook Air M1 from 2020, but it should work on older and newer too.

/usr/sbin/system_profiler SPPowerDataType | grep Wattage
Wattage (W): 90

GUI

You can also check it out via GUI via 5 steps:

Navigating to About This Mac in macOS Sonoma
Step 1
Going through more info, system report and AC Charger Information in macOS Sonoma
Step 2

Source

https://news.ycombinator.com/item?id=38163322