XTABOND or XTABOND2 could be used in dynamic panel data GMM estimation (xtabond2 is better - it can do what xtabond can do, but not the reverse). For the instruments, by default, XTABOND2 uses all lagged values (you can certainly restrict the instrument set) of dependent and independent variables in the first differenced equation, and the lagged first-differerces of the series (dependent and independent variables) dated t-1 to be used in the level equations.
By the way, the IVREG2 mentioned by maoxinshu above is to be used for cross-section estimation for which a suitable instrument is needed - the instrument is always hard to get, not the lagged vales as I mentioned above.
Hope these help.