Maybe we can make it a policy that companies make such information public when they employ more than N number of H1-B holders. With mean, median, standard deviation and error bars, you should be able to get an idea of whether or not this is happening.
Besides these numbers for salary, it would also be interesting to see the same statistics for years of experience programming of domestic labor versus imported labor. I would expect to see a significantly greater mean and median years of experience among H1-B holders versus domestically sourced talent.