A new method for estimating dark matter halo masses using globular cluster systems