Most national chains use a "Trade-In" model where you receive a gift card to use toward a future purchase.

Several major retailers and specialized electronics stores buy old computers, typically offering either or store credit depending on the location and specific program. Retailers Offering Store Credit

If you prefer cash over store credit, specialized electronics buyers are generally a better option. Microsoft Trade-In Program - Laptop, Xbox, Surface and More