As for measuring, there are test kits for GH and KH, like the API. The GH will not change much if at all in the aquarium from the source water level, unless you (the aquarist) somehow targets it. Which brings me to your question how to increase GH.
This is a two-edged sword. Mollies absolutely must have harder water than what you have, considerably so, or they will not last long (a few months at best). The GH is the dissolved calcium and magnesium in the water, and livebearers have evolved to live in water relatively high in calcium especially, and their physiology uses the dissolved calcium taken from the water entering the fish though every cell. This is crucial to their functioning and health.
However, soft water fish are somewhat the opposite; they have evolved top not need/use minerals from the water, and when kept in hard water the assimilation of the calcium by the fish's kidneys leads to calcium blockage and death. The point being, that soft water fish like cories will be healthier in softer water, such as what you have (and even softer, but the 6 dGH you have is not a problem as is). If you increase the GH by at least double (actually, more than this for mollies) you will be impacting the cories. A better option would be to decide which fish you want, softish water or the mollies. Given you have soft water it will make life much easier for you and your fish if you stay with fish species that prefer softer water. Re-home the mollies, or let them die off in time. Or acquire a second tank large enough for the mollies and provide harder water.
You can increase water hardness by using a calcareous substrate, or by the use of mineral salts added to the water. Mineral salts are not common table salt, but the salts of calcium and magnesium primarily. This means mixing replacement water outside the aquarium for all water changes so the tank water remains consistent at whatever GH you work toward. I have done this some years ago, and it is extra work and expense; selecting fish suited to your tap water is much easier on you and fish.