It looks like it is physically possible: ARK | Compare Intel® Products
However, the real question is if the bios on your Samsung R540 will support the i5-450m. You must contact Samsung to see if it does.
Personally, from the comparison, I do not see that much to be gained by going to the i5-450m.
Doc