Two men have been jailed over their links to the illegal gun trade, following a data-driven investigation by the Met Police.