If both Macs have OS X 10.10 or newer and Messages app. But don’t forget you need to configure your iMessage through the Messages app.
How to Start Screen Sharing from Messages in Mac OS X
Screen sharing will be begin after your choose. Their window will open in a new window over your current desktop but it will resize to fit your screen.
A screen sharing icon will be appear in the Mac menu after a session is opened.