It depends on where you buy it.
For example, in several provinces in Canada, the governments compel manufacturers to pay into a fund that covers the cost of recycling most consumer electronics at the end of their useful lives. The fees are in levied advance, on a per-unit basis, at the time the equipment is first sold to a consumer. The manufacturers often pass these fees directly on to the consumers.
A typical environmental fee in Canada for a portable MP3 player would be about $0.40 per device - but different jurisdictions would have different fees.
Several US states also require manufacturers to pay into their statewide electronics recycling programs. But often the formula for determining how much money each manufacturer needs to pay into the program is determined after the fact, based upon their proportional share of the gross tonnage of all materials recycled. These fees are not easily converted into a pre-sale charge, so such expenses are usually hidden away from the consumer's view. [edit]Instead of charging the customers right away, the manufacturers would evaluate how much they spent on recycling programs last year, and inflate next year's base prices to make up the losses.[/edit]