How do you find out what sort of Yamaha engine you have if you only have an engine?

Give your local dealership a ring and quote the engine number. They'll know.