If the engine is in a machine, D8, start with the s/n of the machine. The s/n is located at the rear of the bevel gear case, on the upper left hand side. If there is a winch or ripper on it , the number will be covered up. You could also pull the valve covers and use the casting numbers. You won't have trouble getting your gaskets, I just ordered and recieved head gaskets for my 3T, genuine Cat, from the Cat Dealer in Northern Alberta Canada.
should be a s/n stamped on the oil pan flange of the block (left side) if its not to new. i don't know when cat stopped doing that. good luck.