I went through two of these with an IQ506 (not your 2017) and didn’t have much luck with either, but I do know a little bit about them. I can’t do much outside of give you a general idea of what to expect without a model number to get an idea of how much the cost will truly be.
The problem with a lot of these AIOs is these systems often require nonstandard parts/series specific but can be somewhat interchanged. This issue is the sole reason you end up finding out most of these are total losses and get labeled "BER" over a fix that would not total out a normal computer. Your best bet is to either need to find someone who is gutting a dead one with a good screen assembly (has to be from the same series), or buy a donor with an expensive unrelated HW failure, like a bad motherboard -- if you find one. The problem with most of these AIO PCs is they tend to be a novelty, so parts are hard to find since they do not sell in large numbers. This is important as it makes it hard to find suitable donors.
Quick rant: I hated Windows AIOs when I wrote this, and I have learned to hate them more as I gained experience. An Intel NUC/3rd party chassis with a NUC motherboard or a business class USFF from HP, Dell or Lenovo is far more sustainable and viable then any AIO, outside of the older Dell USFF's that require specific monitors (which was inspired by the ThinkCentre which Lenovo still does). say for example I want a better monitor. I can buy that, without dumping the PC. The other advantage is unlike most AIOs*, you can actually find parts for them (or at least, a lower end unit from the same series which takes your superior CPU, for example -- or a cheap matched unit someone stripped a CPU or other parts from for them where you can use yours in some cases, and move your SSD/HD. I've done both the low end upgrade and adding parts to a barebones stripper chassis. In some cases, I've given others recommendations on upgrade friendly units or found a link to one I know takes their CPU if they can only find a low end unit.
IMPORTANT VESA MOUNT WARNING: Lenovo Tiny USFFs often require a specific Lenovo monitor to "VESA mount", unless you can find a 3rd party mount.
However while the benefits are arguably less egregious than the downsides, there are still negative aspects to these mini PCs, especially if you mount it to the back of the monitor. The "worst" one is your monitors must support VESA 75x75 or 100x100 (depending on your mount) if you ever replace the monitor. While it locks you into a vendor or two you know has them (unless you branch out or find a matched one for your replacement), this is still far more agreeable since you just replaced the monitor, not the PC. AIO PCs are a single use product -- buy, use, recycle. Total JUNK!
*Apple gets a pass, but they’re the ONE exception to the “AIOs are crap, run don’t walk” rule.
In order to get parts for mine, I had to make a deal with a friend to get a whole donor PC... Yep.
I ended up keeping it for parts** because it isn’t entirely useless, but there’s too many nonstandard parts to effectively reuse many components.
**Due to the bad panel and screen flicker, I recycled the panel and plastics, but kept the other easily stored parts. Took up too much space and I had no way to use the screen anyway. The screen also flickered, so I also ended up with a nearly tired screen and a suspect inverter. I kept the inverter as a “try it and see” part, but once one wears the other tends to be next.