You can define a group object in a category through some commutative diagrams that loosely correspond to group axioms. For example, the group objects in category of sets are well...groups. Group objects in category of topological spaces are topological groups.
My friend also mentioned monoid objects. I looked online and saw you could define ring objects.
What other types of objects can you define? Can you define a module object? (Maybe through a group object) Can you define field, algebra, etc objects?
A follow up question here.
There are all sorts of things you can do. In any category with finite products you can define models of any Lawvere theory, which roughly speaking lets you define any type of structure given by some operations which satisfy some universal equational axioms. Examples include
but not fields, because the axiom that every nonzero element is invertible isn't a universal equational axiom, owing to the need to say "nonzero." For more see e.g. this blog post.
In any fixed category $C$ you also can try to write down a monad or comonad on $C$ and talk about algebras or coalgebras over $C$. This is a tremendously general formalism; for example, compact Hausdorff spaces are the algebras of a monad over $\text{Set}$ called the ultrafilter monad. Roughly speaking this defines compact Hausdorff spaces in terms of a bunch of infinitary operations called taking limits with respect to an ultrafilter.
If you require more of $C$ you can define more things in $C$. Generalizing the case of Lawvere theories, if you require that $C$ have all limits you can define models of any limit sketch in $C$, which generalize Lawvere theories. For example, you can define an internal category in $C$ if $C$ has finite pullbacks.
If you require that $C$ have a monoidal structure, the prototypical example being the tensor product of vector spaces, then you can define algebras over operads. These are similar to Lawvere theories but with some constraints on what the axioms can look like; on the other hand monoidal categories are substantially more general than categories with finite products.
Defining fields is complicated because of the need to talk about "nonzero elements." There are various possibilities and in categories other than the usual category of sets they don't agree.