how to convert the ghee having capacity of 500kgs into liters
You need to know the density.
Most vegetable oils and animal fats average around 0.92 kg/L at room temperature, but this figure can vary. Using this figure, 500 kg is about 540 L. Depending on exact density of ghee, this might vary ±20L. If you need better accuracy, you have to measure density.