Jis ke socket se output le rhy hain us se me lgayye capacitor. And be careful its a live wire.
But in my opinion thats really not needed. Since the noise you hear from fans is due to an impure sine wave system. Desi UPS doesn't have high tech components and the output transformer is too made by hand and is not winded properly which cause a bad noisy current.
This problem is sloved by using an imported UPS since they are designed and then assembled on machines with better quality components and hence produce a good Pure Sine wave current. Which doesn't produce any kind of noise in fans at all and also doesn't burn electrical appliances.
You transformer is kind of not a good quality or it has gone weak - core has loosened by the passage of time. It will be a good idea to replace it since by passage of time it will even make the current more noisy and will start burning your electrical appliances like mobile chargers, Modem Adapters etc, get a new one - often called as 'Waleyti Traansfarmar' it will reduce the hiss noise that you hear from your fans motor core.