Doubt that'll work out. Dell uses a proprietary bios, the cpu might be chipset compatible, but the Dell bios almost always prohibits usage of K cpus, and generally has a very small list of acceptable cpus. They feel that if you wanted the i7-7700k performance, then you should have bought the model with that cpu from them, not upgraded.
And the all in one pc's are as severely handicapped for cooling options as a laptop, OC is generally not recommended nor usually possible as it's not using a standard Z rated motherboard.