>>96104170 (OP)>Is He-Man a warlock?Absolutely not.
There are no 3.x, 4e, or 5e D&D classes or feats which could model him. It is unlikely 1e or 2e could either from what little I know or remember.
Other systems, even ones inspired by D&D, such as Pathfinder, can model him to various degrees.
In Pathfinder 1e he would be a Magical Child Vigilante with some minor homebrew (namely, changing the familiar to an animal companion, for his tiger mount Cringer), with several technological and magical items, possibly from Starfinder 1e.
In 2e he would be a Fighter or possibly a Commander with the Starlit Sentinel dedication, with several magical items and a few items ported from Starfinder 2e.
Youd get the essence, but not an exact replication of true power with both editions.