How to Unlock Dragon and Hydra in Kirby Air Ride

Both unlockables come out of the red boxes scattered around the courses. Smash them open and there is roughly a thirty-seventy chance the contents will be a part for one machine or the other.

Because the drop is random, the practical approach is to keep racing and breaking every red box you pass rather than hunting for a specific one. Collect enough parts for a machine and it becomes selectable.