What is, "a basic yamaha KB?" Are you sure it is also a midi-controller? There are a zillion of these, "keyboards, digital pianos, controllers, synths." Without a model number, and verification of the Yamaha KB capabilities, I think its quite difficult to supply a definitive answer to your question.
Anyways.. If the basic Yamaha KB, is a midi controller, than the answer to your question probably lies somewhere in the user manual to whatever DAW you are using.. Another piece of info, that has not been given...
If you are using Sonar X1.. The answer is in, "getting started help file," just search for midi and act. I do not believe, it is possible for DIM Pro to recall controller presets by itself.
Cheers