<< I want to know ALL resolutions and ALL refresh rates when using USB-C/Thunderbolt 4 connections and HDMI port? >>
That depends strongly on several factors. The first is the capabilities of your Mac.
Since these display protocols are running very near the limits of the switching speeds of the dual-rail logic in use, exactly what connection protocol {HDMI, USB-C, DisplayPort, Thunderbolt} also makes a strong difference, as does the length of the cables you are trying to use.
as MartinR has indicated, the Direct HDMI port on the M1 series Macs is limited to 4K at 60 Hz, because it supports only HDMI 2.0. this will work ONLY with PREMIUM high speed HDMI cables. Cables "found" behind your TV set are unlikely to work at all.
Later Macs used a more advanced version, HDMI 2.1, which supports higher resolutions but requires certified ULTRA high speed HDMI cables.
--------
USB-C and ThunderBolt support versions of DisplayPort inside a USB-C or Thunderbolt envelope.
Because the data rate of USB-C is strongly less than ThunderBolt, DisplayPort data rates over USB-C (about 14.4 G bits/sec) top out at 4K at 81 Hz for 8 bits/color of 4K at 65 Hz for 10 bits/color. At these data rates, USB-C cables are limited to ONE meter, maximum.
For Thunderbolt cables, If the display maker has chosen to support the higher DsiaplayPort 2.0 standard at UHBR10 at 38.88 G bits/sec, standard, that supports a 6K display at 8 bits/color, at about 70 Hz. it appears to support a 6K display at 10 bits/color at 60 Hz, but with NO margin of error (so it is possible it does not quite work with certain displays). At these higher speeds, Thunderbolt cables for this use are limited to 0.5 meters maximum, unless you decide to purchase ACTIVE Thunderbolt cables, which are much more expensive (starting at about US$125).