Qualified MacBooks for Mavericks start at the late 2008 models which are the aluminum models and not the older white polycarbonate models.
And No.
You can't just replace hardware in one Mac for another. Not possible and it seems from your question, you would have no idea how to do that, even if it was possible to do, anyways.
If you really think you have a need for OS X Mavericks, you can either buy a new MacBook from Apple or if your in the U.S. check Apple's refurbished section of their website for deals on MacBooks or you can search for online Auhtorized Apple resellers for used Macs and purchase a used, but newer Mac from a Mac resellers.
Mac resellers will have limited warranties ( and even paid extended warranties) for the used Macs that they sell.
Stay away for purchasing a Mac from a private source or a source like eBay.
You can get screwed and there are NO warranties if somebody sells you a defective Mac