It's generally not possible without some special, and of course expensive, extra hardware. The really old (90s era) ones are digital TTL, and most newer ones are LVDS. Neither interface is present on a standard PC.
Some extremely new laptops are starting to use Displayport internally, but this is still quite rare. They also usually lack scalers, so they're inordinately picky about what timings they'll accept.