You should identify your device first, but rooting will void your warranty. You can find details about your device in Menu > Settings > About Device. Then you can use that information on XDA Forums to look for rooting methods. Remember to perform backups at all times.