Police were called to Craven Park Road, Harlesden, following reports of a discharge of a firearm just after midnight on Saturday. The 17-year-old and 21-year-old were taken to hospital for treatment.
Their injuries are believed to be non-life threatening.
Enquiries are ongoing and no arrests have been made yet.
A large cordon remains in place on the high street on Craven Park Road.
Brent MPS have implemented a Section 60 order for the area following the incident.
In a tweet, they wrote: “Following serious violence, a S60 has been authorised by Insp Owen, starting at 1500hrs on the 20th and ending at 0600hrs on the 21st.”
A Met Police spokesperson said: “Police were called at 00:25hrs on Saturday, 20 August, to Craven Park Road, NW10 following reports of a discharge of a firearm.
“Two males – aged 17 and 21 – were injured as a result and are currently in a stable condition, receiving treatment in hospital.
“Neither is believed to be in a life-threatening condition.
“Enquiries are ongoing to identify suspects.
“There have been no arrests.”
Anyone with information is asking to call 101 quoting ref 190/20AUG.