I have not personally benchmarked that CPU, but Medium should run very well on the Threadripper 3990x. Medium heavily uses both the CPU and GPU; all sculpting operations currently happen on the CPU using all available cores, so the 3990x's 64 cores should serve Medium well.
I generally recommend that Medium users upgrade their RAM first (to 32 GB), then their GPU, and then their CPU.