Chosen Solution
Is it possible to upgrade the computer with better processor and motherboard?
Yes, but you would need to replace the motherboard. The CPU is together with the motherboard so you can only upgrade from the same year usually from an i5 to an i7 usually.
While I agree with @benjamen50 on upgrading the CPU would require a swap out of the logic board. Depending on your exact system you might have other cheaper options. As an example upgrading the RAM or even the HDD/SSD drive.