In 2000-2500 rounds, a .338 Lapua would wear an amount comparable to 3500-5000 rounds in a .308 Win.
Although it would probably still shoot just fine, I'd consider a 2500-round .338 Lapua barrel to be "all used up", in the sense that it doesn't owe you anything any more, and can quit shooting at any time without notice without you having any good reason to complain. I'd perhaps be willing to pay up to $100 for such a barrel.
For a barrel with 0-2500 rounds, I'd say that a fair price to pay would be a straight-line depreciation (based on round count) of the cost of a new barrel.
Don't overlook how surprisingly "cheap" a brand-new, match-grade barrel (Krieger, MacLennan etc), installed by a first-rate riflesmith, is compared to the price of brand new factory barrels. Don't overpay, either for a new factory barrel, or for any used barrel.