This can be done in a variety of ways, but it's unfortunately not usually free. 1) A trading terminal such as Bloomberg 2) get API access to subscribe to the exchange feeds or other data vendor feeds.
Usually, this is out of reach for casual traders. I've seen one exchange publish order book snapshots every 5 minutes on their website, but this data is hardly useful for frequently traded instruments if your strategy is based on the order book dynamic.