Two men are to be sentenced after pleading guilty to firearms offences.