Following a search of SAS sniper Sgt Danny Nightingale's accommodation and the discovery of the arsenal, he and Soldier N were both summoned to see a superior officer, a court heard.
Timothy Cray prosecuting said: "Soldier N then told the defendant that he had a pistol in his room and ammunition at the property.
"The defendant then said words to the effect 'I've got exactly the same at the house'."
Soldier N later pleaded guilty to Firearms Act offences after a weapon, ammunition and hand grenade were recovered from the property.
He was given a sentence of military detention, which he is serving.
More top news
A boy who has spent three years caring for his older brother after he was injured falling off a motorbike is to be honoured by Prince Harry.
This week will be more changeable with the remnants of Ex Hurricane Joaquin heading towards the UK bringing wet and windier conditions.
Paralympic gold medalist Oscar Pistorius is to remain behind bars after a decision to release him on parole was delayed again.