The carb bodies are stamped with a setup number indicating what internal components and settings were used. The Cb500's were stamped 627B. At least all of them that I have found. These will work the best on a totally stock CB500.
The same carb bodies, with different internal setups, were used on the Cb550 (022A and 069A stampings) until the K models of 77-78 (PD series). The setups coincide with the displacement and exhaust type changes found on other models of CB500/550 series.
If you still have stock exhaust and air filter components installed on the bike, DO seek out the 627B carbs. If not, simply avoid the 77-78 PD carbs as they will not fit on your bike without other component changes as well. The 022A and 069A carbs can be tuned to non-stock intake and exhausts, just as the 627B carbs can, and they fit interchangeably.
Cheers,