Yeah, it's called a computer.
If you're looking for a portable option that isn't a laptop, the Korg TM40 is a combo tuner/metronome with a 1/4" instrument input and 1/8" headphone out. I haven't used it, so I don't know if it'll work the way you're expecting, but I'd assume so.