Are the sockets too badly rusted for any identification marks to be visible?
Stating the painfully obvious, using the wrong socket to slacken a hexagon fastener, which is very tight, can result in the corners being damaged or removed. The socket might even split!
Depending up on the age of the sockets, if of recent vintage, they might be Metrinch or Flank Drive sockets, (identifiable by the "flats" not being, but curved ).
Metrinch sockets and ring spanners will drive, Whit, AF or Metric fasteners, sometimes where a conventional socket of that type and size will not.
Once you have identified each socket, accurately, it may be worth engraving each one to clarify the size and application
Howard